<%= javascript_include_tag "window","xmpp" %>
<style type="text/css" title="currentStyle" media="screen">
@import '/stylesheets/windows_themes/default.css';
</style>
<img src="/images/chatbig.png" align="left">
<h1>PTM Talk</h1>
This chat application connects to Jabber / XMPP network as GTalk.<br/>
<br/>
<br/>
<br/>
<br/>
<div id="msg"></div>
<div id="chat_window">
	
<%=link_to_remote "login",
  :url => { :action => "login" },
	:update => { :success => "chat_window", :failure => "msg" },
	:before => "$('msg').innerHTML='loging in...';",
	:success => "$('msg').innerHTML='logged in';"
%>

</div>
